/*
 * Copyright (c) 2009, Jan Pastor. All Rights Reserved.
 */

package sk.jp.jitag.dao.db4o.model;

import sk.jp.jitag.dao.db4o.Column;
import sk.jp.jitag.dao.db4o.BaseEntity;

public class Animal extends BaseEntity {

    private static final Column _SORT = new Column("sort");

    private AnimalSort sort;

    //----------------------------------------------------------------------

    public Animal(AnimalSort sort) {
        checkNotNull(_SORT, sort);

        this.sort = sort;
    }

    public AnimalSort getSort() {
        return sort;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Animal");
        sb.append("{sort=").append(sort);
        sb.append('}');
        return sb.toString();
    }
}
